/*    */ package com.service.impl;
/*    */ 
/*    */

import com.dao.IStudentDao;
import com.domain.Student;
import com.github.pagehelper.PageHelper;
import com.service.IStudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/*    */
/*    */ 
/*    */ @Service
/*    */ public class StudentService
/*    */   implements IStudentService
/*    */ {
/*    */   @Autowired
/*    */   private IStudentDao studentDao;
/*    */   
/*    */   public Student login(String account, String password) throws Exception {
/* 20 */     return this.studentDao.login(account, password);
/*    */   }
/*    */ 
/*    */   
/*    */   public List<Student> findAll(int page, int size) throws Exception {
/* 25 */     PageHelper.startPage(page, size);
/* 26 */     return this.studentDao.findAll();
/*    */   }
/*    */ 
/*    */   
/*    */   public void save(Student student) throws Exception {
/* 31 */     this.studentDao.save(student);
/*    */   }
/*    */ 
/*    */   
/*    */   public void delete(Integer id) throws Exception {
/* 36 */     this.studentDao.delete(id);
/*    */   }
/*    */ 
/*    */   
/*    */   public Student findById(Integer id) throws Exception {
/* 41 */     return this.studentDao.findById(id);
/*    */   }
/*    */ 
/*    */   
/*    */   public void update(Student student) throws Exception {
/* 46 */     this.studentDao.update(student);
/*    */   }
/*    */ 
/*    */ 
/*    */   
/*    */   public void updatePassword(Student student) throws Exception {
/* 52 */     this.studentDao.updatePassword(student);
/*    */   }
/*    */ 
/*    */   
/*    */   public List<Student> findByName(String name) throws Exception {
/* 57 */     return this.studentDao.findByName(name);
/*    */   }
/*    */ 
/*    */   
/*    */   public List<Student> findMoHu(String name) throws Exception {
/* 62 */     return this.studentDao.findMoHu(name);
/*    */   }
/*    */ 
/*    */   
/*    */   public String getPasswordById(Integer id) {
/* 67 */     return this.studentDao.getPasswordById(id);
/*    */   }
/*    */ 
/*    */   
/*    */   public List<Student> getStuForget(Student student) {
/* 72 */     return this.studentDao.getStuForget(student);
/*    */   }
/*    */ 
/*    */   
/*    */   public int updatePasswordByName(Student student) {
/* 77 */     return this.studentDao.updatePasswordByName(student);
/*    */   }
/*    */ 
/*    */   
/*    */   public void autoIncrement() {
/* 82 */     this.studentDao.autoIncrement();
/*    */   }
/*    */ 
/*    */   
/*    */   public int updateSid(Integer sid) {
/* 87 */     return this.studentDao.updateSid(sid);
/*    */   }
/*    */ }


/* Location:              G:\项目\图书管理系统\library_system-1.0-SNAPSHOT.war!\WEB-INF\classes\com\service\impl\StudentService.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */